import { useAppSelector } from '@/store'
import React, { memo, Suspense, useEffect, useState } from 'react'
import type { FC, ReactNode } from 'react'
import { shallowEqual, useDispatch } from 'react-redux'
import { Outlet, Link } from 'react-router-dom'

import CNav from './c-nav'

interface IProps {
  children?: ReactNode
}
interface List {
  content: string
  commentId: number
}

const Find: FC<IProps> = () => {
  // 处理函数
  const dispatch = useDispatch()

  return (
    <div>
      <CNav />
      <Suspense fallback="">
        <Outlet />
      </Suspense>
    </div>
  )
}

export default memo(Find)
